"""**8.6 类的多继承**"""
class Flyable:
    def fly(self):
        print("我会飞")

class Swimmable:
    def swim(self):
        print("我会游泳")

'''多继承：鸭子类'''
class Duck(Flyable,Swimmable):
    pass

duck=Duck()
duck.fly()
duck.swim()